package com.ding.second.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ding.second.dao.AdminMapper;
import com.ding.second.dao.ProductImageMapper;
import com.ding.second.dao.ProductMapper;
import com.ding.second.dao.ProductTypeMapper;
import com.ding.second.dao.UserMapper;
import com.ding.second.po.Admin;
import com.ding.second.po.Product;
import com.ding.second.po.ProductImage;
import com.ding.second.po.ProductType;
import com.ding.second.po.User;
import com.ding.second.service.AAA;

@Service("aaa")
public class AAAImpl implements AAA{

	@Autowired
	private AdminMapper adminMapper;
	@Autowired
	private ProductImageMapper productImageMapper;
	@Autowired
	private ProductTypeMapper productTypeMapper;
	@Autowired
	private ProductMapper productMapper;
	@Autowired
	private UserMapper usermapper;
	
	@Override
	public List<Admin> getAdmin() {
		return adminMapper.getAllAdmin();
	}

	@Override
	public List<Product> getProduct() {
		return productMapper.getAllProduct();
	}

	@Override
	public List<ProductImage> getProductImage() {
		return productImageMapper.getAllProductImage();
	}

	@Override
	public List<ProductType> getProductType() {
		return productTypeMapper.getAllProductType();
	}

	@Override
	public List<User> getUser() {
		return usermapper.getAllUser();
	}

}
